package com.meichis.yndms.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2022-03-16 13:50
 */
@Entity
public class VisitTemplate implements Serializable {
    @PrimaryKey
    private int ID;

    private boolean IsMustRelateVehicel = false;
    //步骤编码
    private String Code = "";
    //步骤名称
    private String Name = "";
    //备注
    private String Remark = "";
    //是否必须关联线路
    private boolean IsMustRelateRoute = false;
    //是否允许临时拜访
    private boolean CanTempVisit = false;
    //是否强制顺序拜访
    private boolean IsMustSequenceCall = false;
    //是否允许重复拜访
    private boolean CanRepetitionCall = false;
    //
    private int OwnerClient;

    private int Classify;
    // / 拜访模板环节明细
    private List<VisitTemplateDetail> Items = new ArrayList<>();

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getRemark() {
        return Remark;
    }

    public void setRemark(String remark) {
        Remark = remark;
    }

    public boolean isCanTempVisit() {
        return CanTempVisit;
    }

    public void setCanTempVisit(boolean canTempVisit) {
        CanTempVisit = canTempVisit;
    }

    public boolean isCanRepetitionCall() {
        return CanRepetitionCall;
    }

    public void setCanRepetitionCall(boolean canRepetitionCall) {
        CanRepetitionCall = canRepetitionCall;
    }

    public List<VisitTemplateDetail> getItems() {
        return Items;
    }

    public void setItems(List<VisitTemplateDetail> items) {
        Items = items;
    }

    public boolean getIsMustRelateVehicel() {
        return IsMustRelateVehicel;
    }

    public void setIsMustRelateVehicel(boolean mustRelateVehicel) {
        IsMustRelateVehicel = mustRelateVehicel;
    }

    public boolean getIsMustRelateRoute() {
        return IsMustRelateRoute;
    }

    public void setIsMustRelateRoute(boolean mustRelateRoute) {
        IsMustRelateRoute = mustRelateRoute;
    }

    public boolean getIsMustSequenceCall() {
        return IsMustSequenceCall;
    }

    public void setIsMustSequenceCall(boolean mustSequenceCall) {
        IsMustSequenceCall = mustSequenceCall;
    }

    public int getOwnerClient() {
        return OwnerClient;
    }

    public void setOwnerClient(int ownerClient) {
        OwnerClient = ownerClient;
    }

    public int getClassify() {
        return Classify;
    }

    public void setClassify(int classify) {
        Classify = classify;
    }
}
